import * as apiService from '@/services/api.js';

/**
 * 获取用户提现信息
 */

const userWithdrawAPI = async(params) => {
  const [result,data] = await apiService.post('/gl/withdraw/info', params);

  return [result,data];
};

/**
 * 提交提现申请
 * @param {name,cardNo,cardId,amount,code}
 * @requires amount
 */
const submitWithdrawAPI = async(params) => {
  const [result,data] = await apiService.post('/gl/withdraw/submit', params);

  return [result,data];
};

/**
 * 查看资金明细
 * @param {orderType,startTime,endTime,status,page,size}
 * @returns {Object}
 */
const historyAPI = async(params) => {
  const [result,data] = await apiService.post('/gl/balance/history', params);

  return [result,data];
};


/**
 * @returns
 */
const withdrawDeatilApi = async(params) => {
  const [result,data] = await apiService.post('/gl/withdraw/detail', params);

  return [result,data];
};

export {

}